#ifndef PROTO_H__
#define PROTO_H__


#define KEYPATH "/etc/services"
#define KEYPROJ 'a'


#define DATASIZE 1024
#define PATHSIZE 1024

enum {
	PATH=1,
	DATA,
	EOT
};


typedef struct msg_path_st{
	long mtype;
	char path[PATHSIZE];
}msg_path_t;


typedef struct msg_data_st{
	long mtype;
	char data[DATASIZE];
	int len;
}msg_data_t;

typedef struct msg_eot_st{
	long mtype;
}msg_eot_t;

union msg_un{
	long mtype;
	msg_data_t datamsg;
	msg_path_t pathmsg;
};


#endif
